package com.thinkgem.jeesite.frame.pm.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.thinkgem.jeesite.kpoint.core.base.KpointBaseEntity;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

;

/**
 * 数据字典Entity
 *
 * @author kongxiangsheng
 * @version 2018-09-02
 */
@Data
public class PmDataTreeItem extends KpointBaseEntity {
    public static final String COL_DATA_TREE_ID = "`data_tree_id`";
    public static final String COL_PARENT_ID = "`parent_id`";
    public static final String COL_PARENT_IDS = "`parent_ids`";
    public static final String COL_NAME = "`name`";
    public static final String COL_SORT = "`sort`";

    private static final long serialVersionUID = 1L;
    /**
     * 属性字典ID
     */
    @Length(min = 0, max = 20, message = "属性字典ID长度必须介于 0 和 20 之间")
    private String dataTreeId;
    /**
     * 父节点
     */
    @Length(min = 1, max = 20, message = "父节点长度必须介于 1 和 20 之间")
    private String parentId;
    /**
     * 父节点
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 0, max = 1024, message = "父节点长度必须介于 0 和 1024 之间")
    private String parentIds;
    /**
     * 名称
     */
    @TableField(condition = SqlCondition.LIKE)
    @Length(min = 0, max = 255, message = "名称长度必须介于 0 和 255 之间")
    private String name;
    /**
     * 排序
     */
    private Integer sort;
    /**
     * 拓展字段1
     */
    private String extAttr1;
    /**
     * 拓展字段2
     */
    private String extAttr2;
    /**
     * 拓展字段3
     */
    private String extAttr3;
    /**
     * 拓展字段4
     */
    private String extAttr4;
    /**
     * 拓展字段5
     */
    private String extAttr5;
    /**
     * 拓展字段6
     */
    private String extAttr6;
    /**
     * 拓展字段7
     */
    private String extAttr7;
}